package com.flash.DayProcessing.service.impl;

import com.flash.DayProcessing.entity.GoodName;
import com.flash.DayProcessing.mapper.InventoryStatisticsMapper;
import com.flash.DayProcessing.service.InventoryService;
import com.flash.InventoryManagement.entity.*;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class InventoryServiceImpl implements InventoryService {
    @Resource
    InventoryStatisticsMapper inventoryStatisticsMapper;
    @Override
    public List<SecurityStock> securityStockAndDealData(String dealTime, String dateStock) {
        return inventoryStatisticsMapper.securityStockAndDealData(dealTime,dateStock);
    }

    @Override
    public List<CashStock> cashStockAndFundsAllot(String dateCashStock, String businesstime) {
        System.out.println(1);
        List<CashStock> GoodNames = inventoryStatisticsMapper.cashStockAndFundsAllot(dateCashStock, businesstime);
        System.out.println(GoodNames);
        return GoodNames;
    }

    @Override
    public List<SecurityAccrualStock> securityAccrualStockAndSecurityAccrued(String dateAccrualStock, String businessTime) {
        return inventoryStatisticsMapper.securityAccrualStockAndSecurityAccrued(dateAccrualStock, businessTime);
    }

    @Override
    public List<CashAccrualStock> cashAccrualStockAndCashAccrued(String businessTime, String dateAccrualStock) {
        return inventoryStatisticsMapper.cashAccrualStockAndCashAccrued(businessTime, dateAccrualStock);
    }

    @Override
    public List<TaStock> taStockAndTA(String dateTAStock, String dealTime) {
        return inventoryStatisticsMapper.taStockAndTA(dateTAStock, dealTime);
    }

    @Override
    public int delete(String table, String fundId, String tableTime, String time) {
        return inventoryStatisticsMapper.delete(table,fundId,tableTime,time);

    }

    @Override
    public int deletete(String table, String fundId, String tableTime, String time) {
        return inventoryStatisticsMapper.deletete(table,fundId,tableTime,time);
    }
}
